/*
 *
 * Saturn Framework Co.Limt
 * Copyright (c) 2012-2019 tanks, Inc. All rights reserved.
 */

package com.saturn.config.server.base.entity;

import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <dl>
 * <dt><b>Title:</b></dt>
 * <dd>none</dd>
 * <dt><b>Description:</b></dt>
 * <dd>
 * <p>
 * 配置操作日志表</dd>
 *
 * @author tanks
 * @date 2019-07-08 15:58:43
 */
@Data
@TableName("config_log")
@EqualsAndHashCode(callSuper = true)
public class ConfigLog extends Model<ConfigLog> {

	private static final long serialVersionUID = -2061530967439885223L;
	/**
	 * 日志ID
	 */
	@TableId
	private Long logId;
	/**
	 * 应用ID
	 */
	private Long appId;
	/**
	 * 配置属性ID
	 */
	private Long configId;
	/**
	 * 原对象的JSON描述
	 */
	private String originJson;
	/**
	 * 新对象的JSON描述
	 */
	private String newJson;
	/**
	 * 操作类型 0-新增;1-修改,2-删除
	 */
	private String operateType;
	/**
	 * 是否为公共配置
	 */
	private String isPublic;
	/**
	 * 是否广播
	 */
	private String isCast;
	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(iso = DateTimeFormat.ISO.TIME)
	private LocalDateTime createTime;
	/**
	 * 修改时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(iso = DateTimeFormat.ISO.TIME)
	private LocalDateTime updateTime;

}
